home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- class Hashtable$Entry<K, V> implements Map.Entry<K, V> {
- int hash;
- K key;
- V value;
- Hashtable$Entry<K, V> next;
-
- protected Hashtable$Entry(int var1, K var2, V var3, Hashtable$Entry<K, V> var4) {
- this.hash = var1;
- this.key = var2;
- this.value = var3;
- this.next = var4;
- }
-
- protected Object clone() {
- return new Hashtable$Entry(this.hash, this.key, this.value, this.next == null ? null : (Hashtable$Entry)this.next.clone());
- }
-
- public K getKey() {
- return this.key;
- }
-
- public V getValue() {
- return this.value;
- }
-
- public V setValue(V var1) {
- if (var1 == null) {
- throw new NullPointerException();
- } else {
- Object var2 = this.value;
- this.value = var1;
- return (V)var2;
- }
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof Map.Entry)) {
- return false;
- } else {
- boolean var10000;
- label38: {
- label27: {
- Map.Entry var2 = (Map.Entry)var1;
- if (this.key == null) {
- if (var2.getKey() != null) {
- break label27;
- }
- } else if (!this.key.equals(var2.getKey())) {
- break label27;
- }
-
- if (this.value == null) {
- if (var2.getValue() == null) {
- break label38;
- }
- } else if (this.value.equals(var2.getValue())) {
- break label38;
- }
- }
-
- var10000 = false;
- return var10000;
- }
-
- var10000 = true;
- return var10000;
- }
- }
-
- public int hashCode() {
- return this.hash ^ (this.value == null ? 0 : this.value.hashCode());
- }
-
- public String toString() {
- return this.key.toString() + "=" + this.value.toString();
- }
- }
-